<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script src="/lib/jquery/dist/jquery.js"></script>
    <script type="text/javascript">
        var _re = $.ajax({
            method: "post",
            url: "/home/ajax",
            success: function() {
                console.log(`success`);
            },
            error: function() {
                console.log(`error`);
            },
            complete: function() {
                console.log(`complete`);
            }
        });

        console.log(_re);
    </script>
</body>

</html>